package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.letoken.platform.pub.constant.ConstantsValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商家提现信息表 
 * </p>
 *
 * @author 作者
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("app_mall_withdrawal_info")
@ApiModel(value = "AppMallWithdrawalInfo对象", description = "商家提现信息表 ")
public class AppMallWithdrawalInfo extends Model<AppMallWithdrawalInfo> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("mall_id")
    private Integer mallId;

    @ApiModelProperty("提现金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("手续费")
    @TableField("fee")
    private BigDecimal fee;

    @ApiModelProperty("实际到账金额")
    @TableField("money")
    private BigDecimal money;

    @ApiModelProperty("0.待审核 1.通过 2.拒绝")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("订单号")
    @TableField("seqNo")
    private String seqNo;
    @ApiModelProperty("提现类型 1.u  2.cap")
    @TableField("type")
    private Integer type;

    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(name = "inOut", value = "1=进 2=出)", required = true)
    @TableField(exist = false)
    private Integer inOut;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
